﻿<UserControl x:Class="CL2018_1.UI.UI_Config"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="400" d:DesignWidth="500">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="131*" />
        </Grid.RowDefinitions>

        <GroupBox Header="台体信息(2018-1)">
            <Grid Margin="0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="100" />
                    <ColumnDefinition Width="100" />
                    <ColumnDefinition Width="100" />
                    <ColumnDefinition Width="114*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>

                <Label Content="台体类型:" Grid.Row="0" Grid.Column="0"></Label>
                <StackPanel  Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Orientation="Horizontal"  >
                    <RadioButton Name="rbDan" Margin="5" Content="单相台" IsChecked="True"></RadioButton>
                    <RadioButton Name="rbSan" Margin="5" Content="三相台"></RadioButton>
                </StackPanel>
                <CheckBox Name="cb188H" Grid.Row="0" Grid.Column="3" Content="188H模式" VerticalAlignment="Center"/>
                <Label Content="表位数:" Grid.Row="1"  Grid.Column="0" />
                <ComboBox Name="cbbBws" Grid.Row="1"  Grid.Column="1" SelectionChanged="cbbBws_SelectionChanged">
                </ComboBox>

                <Label Content="485通道数:" Grid.Row="1" Grid.Column="2"/>
                <ComboBox Name="cbbChannelCount" Grid.Row="1" Grid.Column="3" SelectionChanged="cbbChannelCount_SelectionChanged"   />

                <Label Content="2018-1地址:" Grid.Row="2"  Grid.Column="0"/>
                <TextBox Name="tb2018_1Address" Text="193.168.18.1" Grid.Row="2"  Grid.Column="1"/>

                <Label Content="303 端口:" Grid.Row="2" Grid.Column="2"  />
                <TextBox Name="tb303Port" Grid.Row="2"  Grid.Column="3" />

                <Label Content="误差板端口:" Grid.Row="3" Grid.Column="0"/>
                <TextBox Name="tbWcb" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2"/>
                <Label Content="多个端口之间使用 | 分开" Grid.Column="3" Grid.Row="3"/>
            </Grid>
        </GroupBox>

        <GroupBox Header="485通信信息" Grid.Row="1" Grid.Column="0">
            <ScrollViewer VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Auto">
                <UniformGrid Name="ugRs485Ports" Columns="4"/>
            </ScrollViewer>
        </GroupBox>
    </Grid>
</UserControl>
